#define _CRT_SECURE_NO_WARNINGS 1
#include<stdio.h>
int main()
{
	int age = 0;
	scanf("%d", &age);

	int second = age * 3156;
	printf("%d0000", second);
	return 0;
}
